import 'package:json_annotation/json_annotation.dart';

part 'shop_validate.g.dart';

@JsonSerializable()
class ShopValidate extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'contact_name')
  String contactName;

  @JsonKey(name: 'contact_phone')
  String contactPhone;

  @JsonKey(name: 'province_id')
  int provinceId;

  @JsonKey(name: 'province')
  String province;

  @JsonKey(name: 'city_id')
  int cityId;

  @JsonKey(name: 'city')
  String city;

  @JsonKey(name: 'district_id')
  int districtId;

  @JsonKey(name: 'district')
  String district;

  @JsonKey(name: 'address')
  String address;

  @JsonKey(name: 'avatar')
  String avatar;

  @JsonKey(name: 'big_avatar')
  String bigAvatar;

  @JsonKey(name: 'idcard_front')
  String idcardFront;

  @JsonKey(name: 'idcard_back')
  String idcardBack;

  @JsonKey(name: 'license')
  String license;

  ShopValidate(
    this.id,
    this.name,
    this.contactName,
    this.contactPhone,
    this.provinceId,
    this.province,
    this.cityId,
    this.city,
    this.districtId,
    this.district,
    this.address,
    this.avatar,
    this.bigAvatar,
    this.idcardFront,
    this.idcardBack,
    this.license,
  );

  factory ShopValidate.fromJson(Map<String, dynamic> srcJson) =>
      _$ShopValidateFromJson(srcJson);
}
